<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>吕梁健康体检预约系统</title>
    <meta name="description" content="吕梁健康体检预约系统">
    <meta name="keywords" content="吕梁健康体检预约系统">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../plugins/font/iconfont.css">
    <!-- 引入组件库 -->
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../js/vue.js"></script>
    <script src="../plugins/elementui/index.js"></script>
    <script src="../js/axios-0.18.0.js"></script>
    <style>
        .el-col-3{
            text-align: center;
            margin-bottom: 20px;
        }
        .el-col-3 div span{
            font-size: 70px;
            color: #3899bc;
        }
        .el-col-3 .item  span{
            color: #6fd0cc;
        }
        .el-col-3 p{
            margin: 0 auto 20px;
            line-height: 30px;
            font-size: 12px;
        }
        .container{
            display: flex;
            align-items: center;
        }
        .container .el-col-3{
            position: relative;
        }
        .container .el-col-3 i{
            color: gray;
            position: absolute;
            right: -30px;
            top: 10%;
            font-size: 70px;
            transform: rotate(-90deg);
        }
    </style>
</head>
<body class="hold-transition">
<div id="app">
    <div class="content-header">
        <h1>欢迎您，
            <small>{{ username }}</small>
        </h1>
        <el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>预约管理</el-breadcrumb-item>
            <el-breadcrumb-item>检查组管理</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
    <div class="app-container">
        <div class="box">
            <el-row>
                <el-col :span="3">新建档案</el-col>
                <el-col :span="3">会员管理</el-col>
                <el-col :span="3">体检数据</el-col>
                <el-col :span="3">健康评估</el-col>
                <el-col :span="3">人群分类</el-col>
                <el-col :span="3">健康干预</el-col>
                <el-col :span="3">干预追踪</el-col>
                <el-col :span="3">效果评估</el-col>
            </el-row>
            <el-row class="container">
                <el-col :span="3">
                    <div><span class="iconfont icon-ziyuan"></span></div>
                    <p>新建档案</p>
                    <i class="iconfont icon-jiantou3"></i>
                </el-col>
                <el-col :span="3">
                    <div><span class="iconfont icon-huiyuanguanli"></span></div>
                    <p>会员预约</p>
                    <i class="iconfont icon-jiantou3"></i>
                </el-col>
                <el-col :span="3" class="el-col-two">
                    <div>
                        <span class="iconfont icon-shanxingtu"></span>
                        <p>导入体检数据</p>
                    </div>
                    <div>
                        <span class="iconfont icon-zhuzhuangtu"></span>
                        <p>采集体检数据</p>
                    </div>
                    <i class="iconfont icon-jiantou3" style="top: 30%"></i>
                </el-col>
                <el-col :span="3">
                    <div>
                        <span class="iconfont icon-wenjuan"></span>
                        <p>健康评估问卷</p>
                    </div>
                    <div>
                        <span class="iconfont icon-zhongyitizhibianshi"></span>
                        <p>中医体质辨别</p>
                    </div>
                    <div>
                        <span class="iconfont icon-xinlijiankang"></span>
                        <p>心累评测</p>
                    </div>
                    <i class="iconfont icon-jiantou3" style="top: 38%"></i>
                </el-col>
                <el-col :span="3">
                    <div>
                        <span class="iconfont icon-renqunfenlei"></span>
                        <p>人群分类</p>
                    </div>
                    <i class="iconfont icon-jiantou3"></i>
                </el-col>
                <el-col :span="3">
                    <div>
                        <span class="iconfont icon-yingxiaofangan"></span>
                        <p>干预方案制定</p>
                    </div>
                    <i class="iconfont icon-jiantou3"></i>
                </el-col>
                <el-col :span="3">
                    <div class="item">
                        <span class="iconfont icon-kantanriji"></span>
                        <p>随访日记</p>
                    </div>
                    <div class="item">
                        <span class="iconfont icon-weixin"></span>
                        <p>微信提醒</p>
                    </div>
                    <i class="iconfont icon-jiantou3" style="top: 30%"></i>
                </el-col>
                <el-col :span="3">
                    <div class="item">
                        <span class="iconfont icon-xingxing"></span>
                        <p>干预效果评估</p>
                    </div>
                </el-col>
            </el-row>
        </div>
    </div>
</div>
</body>

<script>
    // axios跨域访问，如果需要携带cookie，withCredentials必须为true
    axios.defaults.withCredentials = true;
    var vue = new Vue({
        el: '#app',
        data: {
            backend_url: "http://localhost:9002",
            username:'guest'
        },
        created() {
            //获取当前用户
            axios.get(this.backend_url + "/user/getusername").then((response) => {
                if (response.data.flag) {
                    //请求成功
                    this.username = response.data.data;
                } else {
                    //请求失败
                    this.$message.error(response.data.message);
                }
            }).catch((error) => {
                console.log(error);
                this.$message.error("获取用户名异常");
            });
        }
    })
</script>
</html>
